package com.gdit.comm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 证件类型枚举类
 *
 * @author fgba
 */
@AllArgsConstructor
@NoArgsConstructor
public enum IdentityType {
    /**
     *
     */
    ID_CARD(0, "身份证"),
    OTHER(1, "其他");

    @EnumValue
    private Integer type;
    //标记响应json值
    @JsonValue
    private String value;

    public Integer getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
